package com.yanqu.road.logic.bussiness.servercenter;

import com.yanqu.road.logic.bussiness.DaoHelper;
import com.yanqu.road.entity.config.goods.GoodsBagInfo;
import com.yanqu.road.entity.config.goods.GoodsInfo;

import java.util.List;
import java.util.Map;

public class CommonBussiness {
    public static Map<Integer, GoodsInfo> getGoodsInfoMap() {
        return DaoHelper.getCommonDaoImpl().getGoodsInfoMap();
    }

    public static Map<Integer, GoodsInfo> getGoodsInfoMapChannel(int channelId) {
        return DaoHelper.getCommonDaoImpl().getGoodsInfoMapChannel(channelId);
    }

    public static Map<Integer, Map<Integer, List<GoodsBagInfo>>> getGoodsBagInfoMap() {
        return DaoHelper.getCommonDaoImpl().getGoodsBagInfoMap();
    }

    public static Map<Integer, Map<Integer, List<GoodsBagInfo>>> getGoodsBagInfoMapChannel(int channelId) {
        return DaoHelper.getCommonDaoImpl().getGoodsBagInfoMapChannel(channelId);
    }
}
